﻿<%@ Page Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="MovieManager.aspx.cs" Inherits="UI.Admin.MovieManager" %>

<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">
    <div class="container body-content">
        电影名称：<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
        <br />
        电影导演：<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
        <br />
        电影主演：<asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
        <br />
        电影时长：<asp:TextBox ID="TextBox4" runat="server"></asp:TextBox>
        <br />
        电影简介：<asp:TextBox ID="TextBox5" runat="server"></asp:TextBox>
        <br />
        <br />
        <asp:Button ID="Button1" runat="server" Text="添加条目" OnClick="Button1_Click" />
        <br />
        <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" DataKeyNames="MovieId" DataSourceID="SqlDataSource1">
            <Columns>
                <asp:CommandField ShowSelectButton="True" />
                <asp:BoundField DataField="MovieId" HeaderText="MovieId" InsertVisible="False" ReadOnly="True" SortExpression="MovieId" />
                <asp:BoundField DataField="MovieName" HeaderText="MovieName" SortExpression="MovieName" />
                <asp:BoundField DataField="MovieMainActor" HeaderText="MovieMainActor" SortExpression="MovieMainActor" />
                <asp:BoundField DataField="MovieDirector" HeaderText="MovieDirector" SortExpression="MovieDirector" />
                <asp:BoundField DataField="MovieDuration" HeaderText="MovieDuration" SortExpression="MovieDuration" />
                <asp:BoundField DataField="MovieDesription" HeaderText="MovieDesription" SortExpression="MovieDesription" />
            </Columns>
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:SouthWindConnectionString %>" SelectCommand="SELECT * FROM [Movie]"></asp:SqlDataSource>
    </div>
    <link href="Content/CommonStyleSheet.css" rel="stylesheet" type="text/css" />
</asp:Content>
